<template>
  <div>
    <rh-slideshow :options='imagesList'
                  width='1100px'
                  height='400px'
                  v-if="imagesList"></rh-slideshow>
  </div>
</template>

<script>
import RhSlideshow from '@/components/basic/rh-slideshow'
export default {
  data () {
    return {
      imagesList: ''
    }
  },
  components: {
    RhSlideshow
  },
  created () {
    this.$http.post('http://localhost:3000/admin/findSlide', { name: 'slideshow' }).then(response => {
      this.imagesList = response.data.data.imagesList;
    })
  }
}
</script>

<style lang="less" scoped>
div {
  margin: 0 auto;
  width: 1100px;
}
img {
  width: 100%;
}
</style>